package wyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.PostReply;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PostReplyMapper extends BaseMapper<PostReply> {
    @Select("SELECT POST_ID FROM post_reply GROUP BY POST_ID ORDER BY COUNT(POST_ID) DESC")
    List<Integer> orderByReplyNum();
}
